define(["jqform","layuiall","baidueditor"], function (jqform,layui,UE) {
    var Controller = {
        index:function () {
            jqform.init()
        },
        addexam: function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '#datetime',
                type:'datetime',
                range: '~'
            });
            UE.getEditor('contents');
            jqform.init()
        },
        editexam:function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '#datetime',
                type:'datetime',
                range: '~',

            });
            UE.getEditor('contents');
            jqform.init()
        },
    };
    return Controller;
});